# Description: CLucene, yüksek performanslı bir metin arama motoru olan Lucene'in C ++ versiyonudur.
# URL: http://clucene.sourceforge.net
# Packager: alihan-ozturk28@hotmail.com
# Depends on: cmake

name=clucene
version=2.3.3.4
release=1
source=(http://downloads.sourceforge.net/clucene/$name/$name-core-$version.tar.gz
http://www.linuxfromscratch.org/patches/blfs/svn/$name-$version-contribs_lib-1.patch)

build() {
        cd $name-core-$version
        patch -Np1 -i ../$name-$version-contribs_lib-1.patch &&
        mkdir build
        cd build
        cmake -DCMAKE_INSTALL_PREFIX=/usr \
              -DBUILD_CONTRIBS_LIB=ON ..
        make
        make DESTDIR=$PKG install
}
